Skip to content

Conversation

@scazan
Copy link
Collaborator

@scazan scazan commented Jan 9, 2026

Updates the transition scheduling system to properly handle the new DecisionSchemaDefinition template format. Transitions are now created based on phase rules rather than for every phase, and scheduling uses the correct date field of endDate.

If an update occurs, we remove any transitions that are no longer needed UNLESS they have already completed in which case we need to keep them for historical reasons as they were part of a process.

@scazan scazan force-pushed the transition-scheduling-logic branch from b286ee8 to 85dd429 Compare January 14, 2026 17:58
@scazan scazan changed the base branch from dev to decision-api-new-schema-format January 18, 2026 20:48
@scazan scazan force-pushed the transition-scheduling-logic branch from 0b7df2f to 6b61024 Compare January 18, 2026 20:52
Base automatically changed from decision-api-new-schema-format to dev January 19, 2026 10:23
@scazan scazan force-pushed the transition-scheduling-logic branch from 649ba02 to f60bf87 Compare January 19, 2026 16:41
- Parallelize pMap calls in updateTransitionsForProcess.ts
- Consolidate DB queries in transitionMonitor.ts using JOIN
- Make concurrency consistent (5) across files
- Create transitions when publishing draft instances
- Add comprehensive transition processing tests
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants